From fbc0b7673913cbf94aa892b91a2d4cefdfef744b Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 9 Aug 2004 03:55:00 +0000 Subject: [PATCH] Don't leak a reference to the pixbufs. Sun Aug 8 23:46:20 2004 Matthias Clasen * gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): Don't leak a reference to the pixbufs. --- ChangeLog | 5 +++++ ChangeLog.pre-2-10 | 5 +++++ ChangeLog.pre-2-6 | 5 +++++ ChangeLog.pre-2-8 | 5 +++++ gtk/gtkfilechooserdefault.c | 3 ++- 5 files changed, 22 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index c7453468f9..707d708728 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Aug 8 23:46:20 2004 Matthias Clasen + + * gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): Don't + leak a reference to the pixbufs. + Sun Aug 8 23:36:55 2004 Matthias Clasen * gtk/gtkcombobox.c (gtk_combo_box_menu_setup): Ref diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index c7453468f9..707d708728 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +Sun Aug 8 23:46:20 2004 Matthias Clasen + + * gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): Don't + leak a reference to the pixbufs. + Sun Aug 8 23:36:55 2004 Matthias Clasen * gtk/gtkcombobox.c (gtk_combo_box_menu_setup): Ref diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index c7453468f9..707d708728 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +Sun Aug 8 23:46:20 2004 Matthias Clasen + + * gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): Don't + leak a reference to the pixbufs. + Sun Aug 8 23:36:55 2004 Matthias Clasen * gtk/gtkcombobox.c (gtk_combo_box_menu_setup): Ref diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index c7453468f9..707d708728 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +Sun Aug 8 23:46:20 2004 Matthias Clasen + + * gtk/gtkfilechooserdefault.c (shortcuts_reload_icons): Don't + leak a reference to the pixbufs. + Sun Aug 8 23:36:55 2004 Matthias Clasen * gtk/gtkcombobox.c (gtk_combo_box_menu_setup): Ref diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c index f17362f3f9..7a9f20f969 100644 --- a/gtk/gtkfilechooserdefault.c +++ b/gtk/gtkfilechooserdefault.c @@ -926,7 +926,8 @@ shortcuts_reload_icons (GtkFileChooserDefault *impl) gtk_list_store_set (impl->shortcuts_model, &iter, SHORTCUTS_COL_PIXBUF, pixbuf, -1); - + g_object_unref (pixbuf); + next_iter: i++; } while (gtk_tree_model_iter_next (GTK_TREE_MODEL (impl->shortcuts_model),&iter)); -- 2.30.2